function loginAdmin() {
  $.ajax({
    url: 'http://47.102.45.219:8080/Appoint/backLoginServlet/getIsLogin',
    data: $('form').serialize(),
    dataType: 'json',
    async: false,
    success: function (data) {
      if (data.statu) {
        layui.use('layer', function () {
          layer.msg(data.msg, {
            time: 2000 //2s后自动关闭
          });
          //window.location = 'admin.html'
          window.setTimeout("window.location='admin.html'", 2000);
        })
      } else {
        layui.use('layer', function () {
          layer.msg(data.msg, {
            time: 2000 //2s后自动关闭
          });
        })
      }
    }

  })
}